<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/css/main.css}">
    <script src="@{/js/jquery.js}"></script>
</head>
<body>
<!-- ${word}:从请求中传过来 -->
    <h2 th:text="${word}">欢迎xx!</h2>
    <table>
        <tr>
            <td>班级名</td>
            <td>班级简介</td>
        </tr>
        <tr th:each="jl:${javaClass}">
            <td th:text="${jl.cName}">名字</td>
            <td th:text="${jl.cIntro}">介绍</td>
        </tr>
    </table>
    <hr>

    <img th:src="@{/img/a.jpg}">
    <script>
        $("tr").css("color","green");
    </script>
</body>
</html>